package entity;

import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import common.BaseModelObject;

@Entity
public class Company extends Account {
	private String name;
	@OneToMany(mappedBy = "company", cascade = CascadeType.ALL)
	private Collection<Staff> staffs = new ArrayList<Staff>();

	public Company(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Collection<Staff> getStaffs() {
		return staffs;
	}

	public void setStaffs(Collection<Staff> staffs) {
		this.staffs = staffs;
	}
}